/*******************************************************************************
* Copyright (c) 2010, 2018 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.service.organization;
import com.alibaba.fastjson.JSONObject;
import com.qinyeit.serviceapp.entity.system.ManagementAccount;
import com.qinyetech.springstage.core.service.IBaseService;
import com.qinyeit.serviceapp.entity.MerchantGroup;

/** 
 * ClassName: MerchantGroupService <br/> 
 * Function: 连锁店业务功能 <br/> 
 * date: 2018-11-20 11:05:18 <br/> 
 * 
 * @author liuwenjin
 * @version 1.0
 * @since JDK 1.8
 */
public interface MerchantGroupService extends IBaseService<MerchantGroup, Long>{

    /**
     * 商户注册
     * @param json
     */
    MerchantGroup registerMerchantGroups(JSONObject json);

    /**
     * 验证信息 注册第一步
     * @param data
     */
    void verify(JSONObject data);

    /**
     * 发送验证码
     * @param phone 手机号
     */
    void sendCode(String phone);

    /**
     * 验证短信验证码
     * @param tel 电话
     * @param inputCode 验证码
     */
    void verifyCode(String tel, String inputCode);

    /**
     * 注册 初始化数据
     * @param merchantGroup
     * @param account
     */
    void initData(MerchantGroup merchantGroup,ManagementAccount account);

    /**
     * 初始化打印设置
     * @param merchantGroupId
     * @return
     */
    boolean orderPrintSetFormat(Long merchantGroupId);
}